//
//  ChooseView.h
//  ClassRoom
//
//  Created by apple on 12-12-18.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol ChooseViewDelegate <NSObject>

- (void)didSelecteIndex:(NSIndexPath *) indexPath title:(NSString *) title;

@end

typedef enum showType{
    kindType,
    priceType,
    addressType,
}showType;

@interface ChooseView : UIView<UITableViewDataSource,UITableViewDelegate>{
    NSMutableArray *chooseArray;
    UITableView *tableview;
    showType viewShowType;
    UIButton *kindButton;
}

@property(retain,nonatomic)UIButton *button;

@property (nonatomic, retain) NSMutableArray *chooseArray;
@property (nonatomic, retain) NSMutableArray *kindArrary;
@property (nonatomic, retain) NSMutableArray *priceArray;
@property (nonatomic, retain) NSMutableArray *addressArray;

@property (nonatomic, assign) showType viewShowType;

@property (nonatomic, retain) UIButton *kindButton;
@property (nonatomic, retain) UIButton *priceButton;
@property (nonatomic, retain) UIButton *addressButton;

@property (nonatomic, assign) id<ChooseViewDelegate> delegate;

- (void)reloadTableViewData;

- (void)clickButton:(id) sender;

- (void) setButtonEnable:(BOOL) enable;

@end
